package com.crm.dao.mapper.customMapper.orderManagerCustomMapper;

import com.crm.model.qo.orderManager.OrderInvoiceQO;
import com.crm.model.vo.orderManager.ApplyOrderInvoiceInfoVO;
import com.crm.model.vo.orderManager.OrderInvoiceVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @Author:chaifuyou
 * @Date: 2021/4/26 11:43
 */
public interface CustomerOrderInvoiceCustomMapper {

    /**
     * 查询开票记录
     * @param qo
     * @param order
     * @param dateUnit
     * @return
     */
    List<OrderInvoiceVO> selectOrderInvoiceList(@Param("qo") OrderInvoiceQO qo, @Param("order") String order, @Param("dateUnit") Integer dateUnit);

    /**
     * 修改开票审批状态
     * @param id
     * @param type
     */
    void updateExamineStatus(@Param("id") String id,@Param("type") String type);

    /**
     * 删除开票信息
     * @param id
     */
    void delOrderInvoice(@Param("id")String id);

    /**
     * 查看发票申请详情
     * @param chsCustomerOrderInvoiceId
     * @return
     */
    ApplyOrderInvoiceInfoVO selectApplyOrderInvoiceInfo(@Param("id") String chsCustomerOrderInvoiceId);

    /**
     * 通过主键查询开票详情
     * @param chsCustomerOrderInvoiceId
     * @return
     */
    OrderInvoiceVO selectOrderInvoiceById(@Param("id") String chsCustomerOrderInvoiceId);
}
